package com.iplay.thezen.abstractFactory;

import cn.hutool.core.date.DateTime;
import com.iplay.thezen.templateMethod.AbstractClass;
import com.iplay.thezen.templateMethod.ConcreteClass1;

import java.util.Date;

/**
 * @author dangwu
 * @since 2021/9/9 4:13 下午
 */
public class Test {
    AbstractCreator creator1 = new Creator1();
    AbstractCreator creator2 = new Creator2();

    AbstractProductA a1 = creator1.createProductA();
    AbstractProductB b1 = creator1.createProductB();

    AbstractProductA a2 = creator2.createProductA();
    AbstractProductB b2 = creator2.createProductB();
    AbstractClass class1 = new ConcreteClass1();

    public static void main(String[] args) {
        DateTime now = DateTime.now();
        System.out.println(now);
        System.out.println(new Date().before(null));
    }
}
